package org.bsc.mgwt.client.widget.celllist;

import org.bsc.mgwt.client.MobileResourceAware;

import com.googlecode.mgwt.ui.client.widget.celllist.Cell;

/**
 * 
 * @author bsorrentino
 *
 * @param <T>
 */
public abstract class EditableCell<T> implements Cell<T>, MobileResourceAware {

	public enum Style { NONE, ADD, EDIT };
	
	public boolean isEditable( int index, T model ) {
		return true;
	}
	
	public Style getStyle( int index, T model  ) {
		return Style.EDIT;
	}
}
